package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.*;

import java.time.LocalDate;

public interface OrderService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult orderPageWithDetail(OrdersPageQueryDTO dto);

    OrderVO getOrderWithDetail(Long id);

    void userCancelOrder(Long id);

    void addShoppingCartByOderId(Long id);

    PageResult adminPage(OrdersPageQueryDTO dto);

    OrderStatisticsVO eachStatus();

    void confirmWithCheckStatus(OrdersConfirmDTO dto);

    void rejection(OrdersRejectionDTO dto);

    void adminCancel(OrdersCancelDTO dto);

    void delivery(Long id);

    void complete(Long id);

    void reminder(Long id);

    OrderReportVO orderReport(LocalDate begin, LocalDate end);
}
